package com.scx.dto;

import com.scx.entity.BookGifts;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel("")
public class BookDTO implements Serializable {

    @ApiModelProperty("id")
    private Long id;
    //图书名称
    private String name;
    //图书分类id
    private Long categoryId;
    //图书价格
    private BigDecimal price;
    //图片
    private String image;
    //描述信息
    private String description;
    //0 停售 1 起售
    private Integer status;
    //图书附赠品
    private List<BookGifts> gifts = new ArrayList<>();
}
